use axum_app_common::{
    model::{BizRequest, BizResponse},
    service_store, BizHandler, BizHandlerResult, ServiceStore,
};
use serde_json::json;

pub struct SysHandler;

impl BizHandler for SysHandler {
    fn service_map() -> ServiceStore {
        service_store! {
            ("sys.menu.list","分页查询用户信息") => sys_menu_list
        }
    }
}

pub async fn sys_menu_list(request: BizRequest) -> BizHandlerResult {
    Ok(BizResponse::success(json!(vec![
        "home",
        "welcome",
        "system",
        "settings",
        "user_settings",
        "roles_settings",
        "bpmn_settings"
    ])))
}
